<?php

class FetchAllProductsFromDirectoRequest extends SimpleWebRequest
{
   protected $xmlObject;
   
   public function getMapper()
   {
       return $this->xmlObject;       
   }
   
   public function send()
   {
       $response = parent::send();
		
       if( $response )
       {
           //$response->setResponseInterpretator( new ProductCategoriesMapper($this) );
           return $response;  
       }
       else
       {    
          return false;
       }
        //$xmlObject->execute( $response->getContent() );
			
      // return $xmlObject;
    }
    
    public function __construct($params) 
    {
        $params['url'] = 'https://directo7.gate.ee/ocra_enermatik/transport/xmlcore.asp?get=1&what=item';
	$params['request_data'] = '';
	$params['method'] = 'GET';
		
	parent::__construct( $params );
    }
}